//
//  LYPhotoBrowser.h
//  LYPhotoBrowser
//
//  Created by LvYuan on 16/12/12.
//  Copyright © 2016年 LvYuan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LYPhoto,LYPhotoBrowser;

@protocol LYPhotoBrowserDelegate <NSObject>

@required
- (LYPhoto*)photoBrowser:(LYPhotoBrowser *)browser photoAtIndex:(NSInteger)index;

@end

@interface LYPhotoBrowser : UIViewController

@property (nonatomic, weak  ) UIView * sourceView;
@property (nonatomic, assign) NSInteger currentImageIndex;
@property (nonatomic, assign) NSInteger imageCount;
@property (nonatomic, weak  ) id <LYPhotoBrowserDelegate> delegate;

- (void)show;

@end
